package com.wangyg.flourfactory;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
//@EnableEurekaServer
//@EnableEurekaClient
@EnableDiscoveryClient
@EnableAutoConfiguration
@EnableCircuitBreaker
@EnableFeignClients
@EnableHystrixDashboard/*开启熔断器监控页面 ip:port/上下文/hystrix*/
@EnableHystrix/*开启熔断器，可以使用fallback,以及监控链接hystrix.stream等*/

public class FlourFactoryApplication {
	public static void main(String[] args) {
		SpringApplication.run(FlourFactoryApplication.class, args);
	}
}
